home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / GRAPH_FO / (GRAPH / GRAPH_HE / GRLIST.H < prev    next >
Text File  |  1991-02-15  |  931b  |  42 lines

  1. /******************************************************************************
  2.     GrList.c
  3.         Graph methods in Object C.
  4.  
  5.     SUPERCLASS = CList
  6.  
  7.     Copyright ⌐ 1991 Maarten Meijer. All rights reserved.
  8.         CIS 100016,1764; FidoNet 2:512/114
  9. *******************************************************************************/
  10.  
  11. #define    _H_GrList
  12.  
  13. /* externs */
  14. #include <CList.h>
  15. #include "GrNode.h"
  16.  
  17. /* class definition */
  18. struct GrList : CList {
  19.  
  20.     void        IGrList(void);
  21.     /* Drawing methods */
  22.     void        _Draw(void);
  23.     void        Draw(Rect *area);
  24.  
  25.     /* GrList manipulation methods */
  26.     void        AddNode(GrNode    *which);
  27.     void        RemoveNode(GrNode    *which);
  28.  
  29.     /* selection methods */
  30.     void        Select(Rect *r);
  31.     void        Deselect(void);
  32.     long        CountSelected(void);
  33.     GrNode *    GetSelected(void);
  34.  
  35.     /* Updating methods */
  36.     void        SpanningRect(GrNode *which, Rect *rect);
  37.  
  38.     /* Location methods */
  39.     GrNode    *    FindNode(Point where);
  40.     GrNode    *    FindIncident(GrNode *which);
  41.     };
  42.